﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MudEngine.Parsing.AST
{
    public class LambdaExpression : Expression
    {
        public Expression Expression { get; private set; }

        public LambdaExpression(Expression lambdaExpression)
        {
            this.Expression = lambdaExpression;
            lambdaExpression.Parent = this;
        }

        public override void AcceptVisitor<C>(IAstNodeVisitor<C> visitor, C ctx)
        {
            visitor.VisitLambdaExpression(this, ctx);
        }
    }
}
